#!/bin/sh
# $Id: dotxinitrc,v 1.3 2003/05/14 12:07:54 robarthan Exp $
#
# Apple's example X start-up file extended by Rob Arthan 
# to set up environment for use of /bin/sh rather than /bin/tcsh,
# optionally to load the ProofPower fonts, and to set up
# Motif virtual bindings.
#
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=XINITDIR/.Xresources
sysmodmap=XINITDIR/.Xmodmap

#WM=twm
#WM=mwm
WM=quartz-wm

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# RDA's additions for using /bin/sh:

profile=$HOME/.profile

if [ -f $profile ]; then
    . $profile
fi

# RDA's additions for using Motif apps like Xpp:

fonts=$HOME/fonts
motifbind=$HOME/.motifbind

if [ -d $fonts ]; then
    xset +fp $fonts fp rehash
fi

if [ -f $motifbind ]; then
    xmbind $motifbind
fi
 
# start some nice programs

xterm &
xload &

# start the window manager

exec $WM
